package com.mydesignpattern.beijing.command.command;

import com.mydesignpattern.beijing.command.receiver.Television;

public class TelevisionCommand extends Command {

    private Television television;

    public TelevisionCommand(){}
    public TelevisionCommand(Television tv){
        this.television = tv;
    }


    public void on(){
        television.on();
    }

    public void off(){
        television.off();
    }

    public void channelUp(){
        television.channelUp();
    }

    public void channelDown(){
        television.channelDown();
    }

    public void voiceUp(){
        television.voiceUp();
    }

    public void voiceDown(){
        television.voiceDown();
    }


}
